import { createApp } from 'vue'
import App from './App.vue'
// import router from './router'
import { createPinia } from 'pinia'
const pinia =createPinia()
// 1、创建一个应用
const app=createApp(App)
//app.use(router as any)
app.use(pinia)


app.mount('#app')

/* src/main.ts:9:9 - error TS2345: Argument of type 'Pinia' is not assignable to parameter of type 'Plugin<[]>'.
  Type 'Pinia' is not assignable to type 'FunctionPlugin<[]>'.
    Type 'Pinia' is not assignable to type '(app: App<any>) => any'.
      Type 'Pinia' provides no match for the signature '(app: App<any>): any'. */